#include "LUNA_VorbisFactory.h"
#include "LUNA_SoundManager.h"
#include "LUNA_VorbisSound.h"

using namespace LUNA;

VorbisFactory::VorbisFactory( SoundManager &soundManager, VorbisSystem &vorbis ) :
ISoundFactory( soundManager, "VORBIS" ),
mVorbis( vorbis )
{	
}

VorbisFactory::~VorbisFactory()
{
}

ISound *VorbisFactory::createSound( const std::string &filename )
{
	VorbisSound *sound = new VorbisSound( filename, mVorbis );
	return sound;
}

void VorbisFactory::destroySound( ISound *sound )
{
	assert( sound && __FUNCTION__ );
	delete sound;
}